package pro.wy.staticproxy.proxy;

import pro.wy.staticproxy.impl.PlayerYaoImpl;
import pro.wy.staticproxy.interfaces.IPlayer;

public class Proxy implements IPlayer {
	private IPlayer player;

	@Override
	public void talk() {
		if (player == null) {
			player = new PlayerYaoImpl();
		}
		player.talk();
	}

}
